package com.asset.service;

import com.asset.pojo.Asset;

import java.util.Date;
import java.util.List;


public interface AssetService {
	public List<Asset> listAll();
	public List<Asset> listPd(String SearchTemp, Integer start, Integer end,Date buyTime1,Date buyTime2,Date useTime1,Date useTime2);
	public List<Asset> listUnPd(String SearchTemp, Integer start, Integer end,Date buyTime1,Date buyTime2,Date useTime1,Date useTime2);
	public boolean insert(Asset asset);
	public int updateByPrivateKey(Asset asset);
	public int updateByKey(Asset asset);
	public int delectByPrivateKey(long id);
	public Asset getAssetByPrivateKey(long id);
	public Asset getAssetByIdentifer(String identifier);
	public Asset getAssetByItCode(String itCode);
	public Asset getAssetByUsercode(String code);
	public List<Asset> listAssetByKeyAndString(Long id, String SearchTemp);
	public int exitIfPd(int ifPd);
	public List<Asset>  listAssetAllPage(String SearchTemp, Integer start, Integer end, Short equipGenre, Short status,
			Date buyTime1,Date buyTime2,Date useTime1,Date useTime2);
		
}
